//
//  JwSkinExer.h
//  JwPack
//
//  Created by 陈警卫 on 2023/1/12.
//

#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>

#define kJwSkinExer [JwSkinExer shared]
#define kJwSKEColorClass kJwSkinExer.jw_colorClass

NS_ASSUME_NONNULL_BEGIN

@interface JwSkinExer : NSObject

/// MARK: 单例
+ (JwSkinExer *)shared;

/// MARK: 当前的主题 默认default
@property (nonatomic, strong, readonly) NSString *jw_currentSkin;

/// MARK: 主题颜色指定类
@property (nonatomic, strong) Class jw_colorClass;

/// MARK: 设置主题
- (void)jw_setCurrentSkinKey:(NSString *)key;

@end


@interface JwSkinModel : NSObject

@property (nonatomic, strong) NSDictionary *param;
@property (nonatomic, strong) NSString *key;

/// MARK: 获取当前颜色
- (UIColor *)jw_color;

/**
 sel: _cmd
 param: 颜色参数 @{@"default": @"color", @"dark": @"color"}
 */
+ (JwSkinModel *)jw_modelWithSel:(SEL)sel param:(NSDictionary *)param;

/**
 举个例子
 jw_colorClass
 /// MARK: 主题颜色模型
 + (JwSkinModel *)jw_themeModel {
     NSDictionary *param = @{@"default": @"DD2526", @"dark": @"A33D7F"};
     JwSkinModel *model = [JwSkinModel jw_modelWithSel:_cmd param:param];
     return model;
 }
 */







@end

NS_ASSUME_NONNULL_END
